/*
 * @(#)FieldComparator.java  2.0 11/01/11  
 */
package com.hidromedsa.measure.controller.filesprocessor;

import com.hidromedsa.measure.entities.FieldMedicion;
import java.util.Comparator;

/**
 * <p>Comparator to sort the fields</p> 
 * @version 2.0, 11/01/11
 * @since   JDK1.0
 */
public class FieldComparator implements Comparator<FieldMedicion> {

    public int compare(FieldMedicion o1, FieldMedicion o2) {
        return new Integer(o1.getPosition()).compareTo(o2.getPosition());
    }
}
